echo "${red}Running the bottleneck config${reset}"

# in bytes. Must be atleast 1500 bytes (1 packet)
BUFFER_SIZE=$2
# speed in Mbps
SPEED=$1
KB_SPEED=$(echo "($SPEED * 1000) / 1" | bc)
#echo $KB_SPEED

#todo add delay
tc qdisc replace dev enp0s5 root tbf rate $KB_SPEED.kbit limit $BUFFER_SIZE burst 12kbit
